<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../5.25/vue.js"></script>
</head>
<body>
    <div id="app">
        <p>{{str}}</p>
        <br />
        <p>当前是向对象当中注入属性的值为：</p>
        {{obj.temp}}
    </div>
</body>

<script>
    var vm = new Vue({
        el:"#app",
        data: {
            str:"我是根目录当中的属性",
            obj: {}
        }
    })
    Vue.set(vm.obj,'temp','我是vue.set注入的属性')
</script>
</html>